<template>
  <van-tabbar v-model="active" active-color="#4fc08d" route>
    <van-tabbar-item icon="home-o" to="/Home">书架</van-tabbar-item>
    <van-tabbar-item icon="arrow-down" to="/Borrow">借书</van-tabbar-item>
    <van-tabbar-item icon="arrow-up" to="/Return">还书</van-tabbar-item>
    <van-tabbar-item icon="manager-o" to="/Mine">我的</van-tabbar-item>
  </van-tabbar>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
let $router = useRouter();

import { ref } from "vue";
let active = ref<number>(0);

// const goCart = (index: number) => {
//   active.value = index;
//   $router.push("/CartList");
// };
// const goHome = (index: number) => {
//   active.value = index;
//   $router.push("/");
// };
</script>

<style scoped>

</style>